<?php
namespace catchAdmin\customs\model\search;

trait CustomscodeSearch
{
    /*
     *  商品编码
    */
    public function searchgoodsCodeAttr($query, $value, $data)
    {
        return $query->whereLike('goods_code', $value);
    }
    
    /*
     *  商品名称
    */
    public function searchgoodsNameAttr($query, $value, $data)
    {
        return $query->whereLike('goods_name', $value);
    }
}